package com.taobao.modules.hession;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;

/**
 *
 */
public class Client {

	/**
	 * @param args
	 * @throws MalformedURLException
	 */
	public static void main(String[] args) throws MalformedURLException {
		HessianProxyFactory factory = new HessianProxyFactory();
		Hello hello = (Hello) factory.create(Hello.class, "http://127.0.0.1:8080/hello");
		System.out.println(hello.sayHello("cjj"));
	}
}
